import os

path = '/Users/apple/PycharmProjects/pythonProject/homework/homework1.py'
sz = os.path.getsize(path)

print(sz)
